package com.barbeque.mall.bean.order;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

/**
 * 搜索订单的输入数据
 * @author ycc
 * @date 2022/07/16 22:17:03
 */
@Data
public class SearchConditionBo {
    //第几页
    private Integer page;
    //每页数据的条数
    private Integer limit;
    //该数组的值对应start和end
    //private Date[] timeArray;
    private Integer[] orderStatusArray;
    //按照时间排序
    private String sort;
    //降序排序
    private String order;
    //订单id
    private Integer orderId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    //起始时间
    private Date start;
    //结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date end;
    //用户id
    private Integer userId;
    //订单编号
    private String orderSn;
}
